<%@ page language="java" import="java.util.*"  contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath %>">
<title>现金额度统计</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<%-- 引用layui.css --%>
<link rel="stylesheet" type="text/css" href="<%=basePath %>js/layui/css/layui.css" />
<link rel="stylesheet" type="text/css"href="<%=basePath %>css/common.css" />
</head>
<body>
	<div class="ibox">
		<div class="ibox-content bodycss">
			<!-- 表单搜索 开始 -->
		 	<section class="panel panel-padding ">
			<form class="layui-form layui-form-pane form-search"
				onsubmit="return false" method="get">
				<div class="layui-form-item layui-inline">
					<label class="layui-form-label">来源</label>
					<div class="layui-input-inline" >
					  <div  style="width:150px">
						<select name="source" id="source"  > <!-- 来源：0：充值;10：订单 -->
							<option value="">请选择</option>
							<option value="0">充值</option>
							<option value="10">订单</option>
						</select>
                      </div>
					</div>
				</div>
					
				<div class="layui-form-item layui-inline">
					<button class="layui-btn layui-btn-primary" lay-submit lay-filter="seach">
						<i class="layui-icon"></i> 查 询
					</button>
				</div>
			</form>
			</section>
			<!-- 表单搜索 结束 -->
			<section class="panel panel-padding ">
			
			
			<table class="layui-table"  lay-filter="test"
				lay-data="{
	                        id: 'menuTeble',
	                        width:'auto',
	                        url: 'CWHS/queryList.do',
	                        page: true,
	                        even: true,
	                        skin: 'row',
	                        limits:[10,20,30,40,50],
	                        limit:10,
	                        method:'post'
	                        }"
				lay-filter="popedomLay">
				<thead>
					<tr>
					<th lay-data="{checkbox:true,disabledKey:'check_status',disabledKeyValue:'1,2'}"></th>
						<!-- <th lay-data="{checkbox:true,disabledKey:'check_status',disabledKeyValue:'1,2'}"></th> -->
						<th lay-data="{type:'numbers', width:50}">序号</th>
						<th lay-data="{field:'userID', width:120,align:'center'}">tvn号</th>
						<th lay-data="{field:'userName', width:120,align:'center'}">会员名称</th>
						<th lay-data="{field:'rechAmount', width:200,align:'center'}">金额</th>
						<th lay-data="{field:'rechDateTime', width:120,align:'center'}">时间</th>
						<th lay-data="{field:'areaName', width:120,align:'center'}">服务点</th>
						<th lay-data="{field:'source', width:120,align:'center'}">来源</th>
						<th lay-data="{field:'orderSn', width:120,align:'center'}">订单号</th>
						<th lay-data="{field:'orderAmount', width:120,align:'center'}">订单金额</th>
						<th lay-data="{field:'balance', width:120,align:'center'}">剩余金额</th>
						<th lay-data="{field:'isExperie', width:120,align:'center'}">订单类型</th>
					
					</tr>
				</thead>
			</table>
			</section>
		</div>
	</div>
	
    
    <script type="text/javascript">
    
    </script>
	<script type="text/javascript" src="<%=basePath %>js/layui/layui.js"></script>
	<script type="text/javascript">
	layui.config({
	    base: "<%=basePath%>/js/common/"
	}).use(["common", "element", "laydate","layer", "form", "table", "jquery"], function(){
			var elem = layui.element;
			var layer = layui.layer;
			var form = layui.form;
			var table = layui.table;
			var $ = layui.jquery;
			var laydate = layui.laydate;
			layui.common.init();
			/**
			 *	 监听刷新表格
			 */
			 form.on('submit(seach)', function(data){
				 console.log(JSON.stringify(data.field));
					table.reload('menuTeble', {
						where: data.field,
						page : {
							curr : 1
						}
					});
					return false;
				});
	});
</script>
</body>
</html>
